  /*************************************************init*****************************/
  function query_invInStorage(page) {
	sys_loading();
	var parm = $('#queryinvInStorageForm').serialize() + (page != null ? ('&page=' + page) : '');
	var url = create_url('invInStorage-query');
	sys_record_parm('invInStorage',parm);
	$.ajax({type:'POST', url:url, data:parm,
		success: function(result) {
			sys_loading_close();
			$('#ResultList').html(result);
		}
	});
}
//显示序列号
  function showSerial_invInStorage(code) {
  	var url = create_url('invInStorage-detail');
  	var parm = {'code':code};
  	$.colorbox({overlayClose:false, href:url, data:parm, close:'[关闭]', width:'800px', height:'800px',
  		open:true,onClosed:function(){
  		}
  	});
  }
  
  function shield_invInStorage(code, name) {
		$.Zebra_Dialog('确定要屏蔽吗？',{
		'type': 'question',
		'title': '警告' ,
		'buttons':[
	       {caption:'屏蔽',callback:function() {
	    	   var url = create_url('invInStorage-shield');
	    	   aidExecute_invInStorage(code, url);
			}},
	       {caption:'取消',callback:function(){}
	       }]
		});
	}

	function unshield_invInStorage(code, name) {
		$.Zebra_Dialog('确定要解除屏蔽吗？',{
		'type': 'question',
		'title': '警告' ,
		'buttons':[
	       {caption:'解除',callback:function() {
	    	   var url = create_url('invInStorage-unshield');
	    	   aidExecute_invInStorage(code, url);
			}},
	       {caption:'取消',callback:function(){}
	       }]
		});
	}
	function aidExecute_invInStorage(code, url) {
		var parm = {'code':code};
		sys_submiting();
		$.ajax({type:'POST', url:url, data:parm,
			success: function(result) {
				sys_submiting_close();
				if ('success' == result) {
					query_invInStorage();
				} else {
					$.Zebra_Dialog('操作失败，请刷新页面再次尝试，如果问题依然存在，请联系管理员!');
				}
			}
		});
	}